package com.newly.api.business.feign;

import com.newly.common.base.constants.ServerUriConstant;
import com.newly.common.base.entity.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @anthor sbq
 * @date 2021/11/4 9:57
 */
@Api(tags = "大屏数据api")
@FeignClient(path = ServerUriConstant.NEWLY_BUSINESS_DATA_SCREEN, name = ServerUriConstant.NEWLY_BUSINESS_SERVICE_NAME)
public interface DataScreenClient {

    @ApiOperation("定时推送消息")
    @RequestMapping("/dataScreenCount")
    R dataScreenCount(Integer offset);

    @ApiOperation("数据大屏--实时数据")
    @GetMapping("/getRealTimeData")
    R getRealTimeData(@RequestParam(value = "limit",defaultValue = "10") Integer limit);
}
